class_name RioladoMap
extends Map

const RIOLADO_MAP_SCENE: PackedScene = preload("res://map/riolado.tscn")

static func load_map()->RioladoMap:
	var map:RioladoMap = RIOLADO_MAP_SCENE.instantiate()

	return map


func _ready() -> void:
	size = Vector2i(24,15)
	default_entered_location = Vector2i(13,14)
	var villager = Villager.new_villager(Vector2i(14,10),Villager.YOUNG_MAN,"村庄守卫",true,["First", "Last"])
	add_child(villager)
	var villager2 = Villager.new_villager(Vector2i(11,5),Villager.YOUNG_MAN,"游荡青年",false,["First", "Last"])
	add_child(villager2)
	var villager3 = Villager.new_villager(Vector2i(2,11),Villager.UNCLE_DARK_BLUE,"废铁大叔",true,["First", "Last"])
	add_child(villager3)
	var villager4 = Villager.new_villager(Vector2i(19,6),Villager.LADY_DARK_BLUE,"看河女士",true,["First", "Last"])
	add_child(villager4)
	var villager5 = Villager.new_villager(Vector2i(5,5),Villager.YOUNG_MAN,"酒吧门口的人",true,["First", "Last"])
	add_child(villager5)
